package com.only4play.httpapt.support.api;

import com.only4play.httpapt.support.bean.posts.JpPostAddReq;
import com.only4play.httpapt.support.bean.posts.JpPostAddResp;
import com.only4play.httpapt.support.bean.posts.JpPostInfo;
import com.only4play.httpapt.support.bean.posts.JpPostSearchResp;

/**
 * @author liyuncong
 * @version 1.0
 * @file JpPostService
 * @brief JpPostService
 * @details JpPostService
 * @date 2024-08-16
 *
 * Edit History
 * ----------------------------------------------------------------------------
 * DATE                     NAME               DESCRIPTION
 * 2024-08-16               liyuncong          Created
 */
public interface JpPostService {

    /**
     * Get posts.
     */
    JpPostSearchResp getPosts() throws Exception;

    /**
     * Get post.
     */
    JpPostInfo getPost(Integer postId) throws Exception;

    /**
     * Add post.
     */
    JpPostAddResp addPost(JpPostAddReq addReq) throws Exception;
}
